<template>
  <el-container class="layout-container">
    <!-- 左侧导航 -->
    <el-aside width="200px" class="aside">
      <CommonAside />
    </el-aside>

    <!-- 右侧内容区 -->
    <el-container>
      <el-header class="header">
        <h1>{{ $route.meta.title || '学生班级管理系统' }}</h1>
      </el-header>
      <el-main class="main">
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup>
import CommonAside from '@/components/CommonAside.vue'
</script>

<style scoped>
.layout-container {
  height: 100vh;
}
.aside {
  background-color: #545c64;
  color: white;
}
.header {
  background-color: #f5f5f5;
  padding: 0 20px;
}
.main {
  padding: 20px;
  overflow-y: auto;
}
</style>